﻿using AutoTask.Model;

namespace AutoTask.DAL
{
    public interface IAutoTaskDAL
    {
        bool BeginExec(Guid id, DateTime next, int verNum, int ver);
        void EndExec(Guid id);
        RemoteTask GetTask(Guid id);
        BasicTask[] GetTaskList(long regionId);
        TaskState GetTaskState(Guid id);
        void SetTaskTime(Guid id, DateTime execTime);
        void StopTask(Guid id, long errorId);
    }
}